package com.info.zhiduoduo.repository.entity.weixin;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2018-12-23
 */
@Data
@Accessors(chain = true)
@TableName("zdd_wx_openid")
public class WxOpenid extends Model<WxOpenid> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 微信用户唯一标识
     */
    private String openid;
    /**
     * 1创客2企业
     */
    private Integer identitytype;
    /**
     * 会话秘钥
     */
    @TableField("session_key")
    private String sessionKey;
    /**
     * 用户在开放平台的唯一标识符
     */
    private String unionid;
    /**
     * 创建时间
     */
    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
